package user.controller;
import java.io.PrintWriter;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; 

import org.springframework.web.servlet.view.AbstractView; 
public class JSONView extends AbstractView {   
	public JSONView()      {   
		super();    
		setContentType( "text/html; charset=euc-kr"); 
		}     
	@Override 
	protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) 
	throws Exception {    
		//System.out.println("111");
		String jobj = (String)model.get("html");
		//System.out.println(jobj);
		response.setContentType( "text/html; charset=euc-kr");   
		response.setHeader("Cache-Control", "no-cache"); 
		PrintWriter out = response.getWriter();   
		out.write(jobj);		
		out.flush();
		out.close();
		} 
		 
	} 



